package top.whysu.study.thinkinjava.chapter10.innerclass.example3;

public class Implemention1 implements Service{
    private Implemention1(){}
    @Override
    public void method1() {
        System.out.println("Implemention1 method1");
    }

    @Override
    public void method2() {
        System.out.println("Implemention1 method2");
    }

    public static ServiceFactory factory = new ServiceFactory() {
        @Override
        public Service getService() {
            return new Implemention1();
        }
    };
}